﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<meta charset="utf-8">
	<title>{$site_name}</title>
    <meta http-equiv="Content-Language" content="es_ES">
    <meta name="author" content="Powerless"> 
    <meta name="Copyright" content="{$site_seo_title}">
	<meta name="keywords" content="{$site_seo_keywords}" />
	<meta name="description" content="{$site_seo_description}">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">   
<link rel="icon" href="__TMPL__Public/images/favicon.ico" type="image/ico">
<link href="__TMPL__Public/style/base.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="__TMPL__Public/style/investment.css" type="text/css"/>
<script type="text/javascript" src="__TMPL__Public/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="__TMPL__Public/js/jquery.flexslider.js"></script>
<script type="text/javascript" src="__TMPL__Public/js/custom.js"></script>
        <script type="text/javascript" language="javascript">  
        function nofind(){
        var img=event.srcElement;
        img.src="__TMPL__Public/images/no-img.jpg";
        img.onerror=null; 
        }
        </script>
</head>
<body>
<div class="top">
<!--top start-->
	<div id="headnavbg">
		<ul>
		<li style=" margin: 0 37px;"><a href="{:u('list/index',array('id'=>161))}">Literatura</a></li>
		<li style=" margin: 0 37px;"><a href="{:u('list/index',array('id'=>162))}">Arte</a></li>
		<li style=" margin: 0 37px;"><a href="{:u('list/index',array('id'=>163))}">Música</a></li>
		<li style=" margin: 0 37px;"><a href="{:u('list/index',array('id'=>164))}">Sanidad</a></li>
		<li style=" margin: 0 37px;"><a href="{:u('list/index',array('id'=>165))}">Educación</a></li>
		</ul>
	</div>
	<div class="top_1">
		<ul class="top_2">
			<li class="top_2_title">miembro</li>
			<li>
				<section>
					<div id="banner_section">
						<div class="flexslider">
							<ul class="slides">
                            <php>
                            $investment_all=sp_sql_posts('cid:161，162，163，164，165;field:tid,smeta;limit:6;order:post_date desc');
                            </php>
                            <foreach name="investment_all" item="all">
                                <php>
                                $smeta=json_decode($all['smeta'],true);
                                </php>
                                <li><a href="{:U('article/index',array('id'=>$all['tid']))}">
                                <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="300" height="218"/></a></li>
                            </foreach>
							</ul>
						</div>
					</div>
				</section>
			</li>
		</ul>
		
		<ul class="top_3">
			<li class="top_3_title">Literatura</li>
			<li class="top_3_1">
            <php>
            $information_all=sp_sql_posts('cid:161;field:tid,smeta;limit:3;order:post_date desc');
            </php>
            <foreach name="information_all" item="all">
                <php>
                $smeta=json_decode($all['smeta'],true);
                </php>
                <a href="{:U('article/index',array('id'=>$all['tid']))}">
                <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="185" height="107"/></a>
            </foreach>
			</li>
            <php>
            $information_all=sp_sql_posts('cid:161;field:tid,post_title;limit:5;order:post_date desc');
            $a=2;
            </php>
            <foreach name="information_all" item="all">
                <php>
                $a++;
                </php>
                <li class="top_3_{$a}">
                    <a href="{:U('article/index',array('id'=>$all['tid']))}"><h3>{$all.post_title}</h3></a>
                </li>
            </foreach>
		</ul>
	</div>
</div>
<!--top end-->
<!--middle start-->
<div class="middle">
	<div class="middle_title">Arte</div>
	<div class="middle_content">
        <php>
        $investment_all=sp_sql_posts('cid:162;field:tid,post_title,smeta;limit:5;order:post_date desc');
        </php>
        <foreach name="investment_all" item="all">
            <php>
            $smeta=json_decode($all['smeta'],true);
            </php>
		<ul class="middle_content1">
			<a href="{:U('article/index',array('id'=>$all['tid']))}">
            <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="175" height="165">
            </a>
			<div class="middle_border"></div>
			<div class="middler_content2">
				<h6><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></h6>
			</div>
		</ul>
        </foreach>
        
		
	</div>
</div>
<!--middle end-->
<!--middle_top start-->
<div id="mainnewsbg">
	<div class="middle_title">Música</div>
	<div class="leftnewsbg">
		<ul>
                <php>
        $merger_all=sp_sql_posts('cid:163;field:tid,post_title,smeta;limit:1;order:post_date desc');
        </php>
        <foreach name="merger_all" item="all">
            <php>
            $smeta=json_decode($all['smeta'],true);
            </php>
			<li><a href="{:U('article/index',array('id'=>$all['tid']))}">
            <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="290" height="140" /></a></li>
			<div><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></div>
        </foreach>
		</ul>
	</div>
	<div class="middlenewsbg">
        <php>
        $investment_all=sp_sql_posts('cid:163;field:tid,post_title,smeta;limit:7;order:post_date desc');
        $a=0;
        </php>
        <foreach name="investment_all" item="all">
            <php>
            $smeta=json_decode($all['smeta'],true);
            $a++;
            if($a>1){
            </php>
        <ul>
			<li><a href="{:U('article/index',array('id'=>$all['tid']))}">
            <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="130" height="60" /></a></li>
			<div><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></div>
		</ul>
        <php>}</php>
        </foreach>
	</div>
	
</div>
<div class="middle">
	<div class="middle_title">Sanidad</div>
	<div class="middle_content">

        <php>
        $venture_all=sp_sql_posts('cid:164;field:tid,post_title,smeta;limit:5;order:post_date desc');
        </php>
        <foreach name="venture_all" item="all">
            <php>
            $smeta=json_decode($all['smeta'],true);
            </php>
		<ul class="middle_content1">
			<a href="{:U('article/index',array('id'=>$all['tid']))}">
            <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="175" height="165">
            </a>
			<div class="middle_border"></div>
			<div class="middler_content2">
				<h6><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></h6>
			</div>
		</ul>
        </foreach>
	</div>
</div>
<div id="mainnewshotbg">
   <div class="middle_title">Música</div>
	<div class="leftnewhotbg">
        <php>
        $opportunity_all=sp_sql_posts('cid:163;field:tid,post_title,smeta;limit:7,4;order:post_date desc');
        </php>
        <foreach name="opportunity_all" item="all">
            <php>
            $smeta=json_decode($all['smeta'],true);
            </php>
        <ul>
			<li><a href="{:U('article/index',array('id'=>$all['tid']))}">
            <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="300" height="150" /></a></li>
			<div><a href="{:U('article/index',array('id'=>$all['tid']))}"><h3>{$all.post_title}</h3></a></div>
		</ul>
        </foreach>
	</div>
	<div class="rightnewhotbg">
		<ul>
        <php>
        $fair_all=sp_sql_posts('cid:162;field:tid,post_title;limit:5,6;order:post_date desc');
        </php>
        <foreach name="fair_all" item="all">
			<li><a href="{:U('article/index',array('id'=>$all['tid']))}"><h3>{$all.post_title}</h3></a></li>
        </foreach>
		</ul>
	</div>
</div>
<!--middle_top end-->
<!--friendlink start-->
<include file="Public:footer" />
<!--friendlink end-->
</body>
</html>
